<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Admin/NewsTag/index')}">标签列表</a></li>
			<li ><a href="{:U('Admin/NewsTag/add')}">添加标签</a></li>
		</ul>
	<!-- 	 <form class="well form-search" name="query_form" id="query_form" method="post" action="{:U('Admin/AppUser/index')}">
			账号： 
			<input type="text" name="mobile" style="width: 120px;" value="{$formParam.mobile}" placeholder="请输入账号...">
			昵称： 
			<input type="text" name="userName" style="width: 120px;" value="{$Think.post.userName}" placeholder="请输入账号...">
			性别： 
			<select class="select_2" name="sex" style="width: 65px;">
			    <option >全部</option>
				<option value=0 <if condition="$Think.post.sex heq '0' ">selected</if>>男</option>
				<option value='1' <if condition="$Think.post.sex eq 1 ">selected</if>>女</option>
			</select>
			<input type="button" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/AppUser/index')}" class="btn btn-primary" value="查询" />
		</form> --> 
		<form class="js-ajax-form" action="{:U('Admin/NewsTag/listorders')}" method="post" >
		<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
			</div>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">{:L('SORT')}</th>
					<th>新闻类别</th>
					<th>标签名称</th>
					<th>添加时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<th width="50"><input name="listorders[{$vo.tagId}]" type="text" size="3" value="{$vo.sortIndex}" class="input input-order"></th>
					<td>{$vo.cN}</td>
					<td>{$vo.tagName}</td>
					<td>{$vo.createdOnUTC|strtotime|date="Y-m-d H:i:s",###}</td>
					<td>
						<a href='{:U("Admin/NewsTag/edit",array("tagId"=>$vo["tagId"],"categoryId"=>$vo["categoryId"],"tagName"=>$vo["tagName"],"sortIndex"=>$vo["sortIndex"]))}'>编辑</a>
						<a href='{:U("Admin/NewsTag/del",array("tagId"=>$vo["tagId"]))}' class="js-ajax-delete">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		
		<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
			</div>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		
	});
	</script>
</body>
</html>